From: Keir Fraser Date: Tue, 21 Jul 2009 13:26:52 +0000 (+0100) Subject: xend: pass-through: fix regression in the ordering of the output of xm pci list X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13575 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=03c274f00c78906d4fa258b79624e2ead3aa7eca;p=xen.git xend: pass-through: fix regression in the ordering of the output of xm pci list changeset "python: Remove tab indents" (19937:e845326ae203) introduces a minor regression in the multi-function PCI pass-through code by causing bogus return values from the sort function which is used to order the output of "xm pci list". Signed-off-by: Simon Horman --- diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index e557429d3d..6397382f88 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -2234,7 +2234,7 @@ def xm_pci_list(args): vdevfn = AUTO_PHP_SLOT else: vdevfn = x['vdevfn'] - return (vdevfn << 32) | \ + return (vdevfn << 32) | \ PCI_BDF(x['domain'], x['bus'], x['slot'], x['func']) devs.sort(None, f)